class Cat:
    def __init__(self,name):
        self.name=name

    # def speak():
    #     print('shout~~~~~~~~~~~')
    #     cat=Cat('小黑')
    #     print(cat.name)

        def miao(self):
            print('miao~~~~~~~~~')

            cat=Cat('小白')
            print(cat.name)
            cat.miao()
            # print(Cat.name)#实例属性不能用类调用


